package com.pbd.client;

import com.google.gwt.core.client.GWT;


public class ServiceUtil {

	private static _HibernateServiceAsync hibernateServiceAsync;
	private static UserLoginServiceAsync userLoginServiceAsync;
	private static EmailServiceAsync emailServiceAsync;
	private static MemberServiceAsync memberServiceAsync;
	
		public static _HibernateServiceAsync getHibernateServiceAsync() {
		if (hibernateServiceAsync == null) 
			hibernateServiceAsync = (_HibernateServiceAsync) GWT.create(_HibernateService.class);
		
		return hibernateServiceAsync;
	}
		public static UserLoginServiceAsync getUserLoginServiceAsync() {
			if (userLoginServiceAsync == null) 
				userLoginServiceAsync = (UserLoginServiceAsync) GWT.create(UserLoginService.class);
			
			return userLoginServiceAsync;
		}
		
		public static EmailServiceAsync getEmailServiceAsync() {
			if (emailServiceAsync == null) 
				emailServiceAsync = (EmailServiceAsync) GWT.create(EmailService.class);
			
			return emailServiceAsync;
		}
		
		public static MemberServiceAsync getMemberServiceAsync(){
			if(memberServiceAsync == null)
				memberServiceAsync = (MemberServiceAsync)GWT.create(MemberService.class);
			return memberServiceAsync;
		}
}